package com.recSystem.Entity.POJO;

import java.io.Serializable;

import com.recSystem.Entity.DTO.StatusDTO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class HttpResponse<T> implements Serializable {
    private StatusDTO status;
    private T data;

    public static HttpResponse ok(){
        return new HttpResponse(new StatusDTO(0,"操作成功"),null);
    }
}
